package org.grayrabbit.cms.service.lucene;

import java.util.List;

import org.grayrabbit.cms.vo.lucene.LuceneBean;
import org.grayrabbit.cms.vo.lucene.SearchConditionBean;

import org.grayrabbit.dao.util.Page;

public interface SearchLuceneService {
	/**
	 * 创建索引
	 */
	public void createAllIndex();
	
	/**
	 * 生成文章信息索引
	 */
	public boolean createContentIndex();
	
	/**
	 * 生成HTML信息索引
	 */
	public boolean createHtmlIndex();
	/**
	 * 合并索引
	 */
	public void mergerIndex(boolean addHtml,boolean addContent);
	
	
	/**
	 * 搜索
	 * @param scb
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public List<LuceneBean> search(SearchConditionBean scb, Page<LuceneBean> page) throws Exception;
	
		

}
